//
//  PointArr.swift
//  Trans
//
//  Created by zcj on 2024/12/11.
//

import Foundation


//存放点的数据结构
class PointArr:ObservableObject{
    @Published var high:CGPoint
    @Published var low:CGPoint
    @Published var lastPoint:CGPoint
    @Published var arr:Array<CGPoint>
    @Published var maxSpeed :CGFloat
    @Published var minSpeed :CGFloat
    @Published var lastSpeed :CGFloat
    
    init(){
        high = CGPoint(x: 0, y: -CGFloat.greatestFiniteMagnitude)
        low = CGPoint(x: 0, y: CGFloat.greatestFiniteMagnitude)
        lastPoint = CGPoint(x: 0, y: 0)
        arr = []
        maxSpeed = -CGFloat.greatestFiniteMagnitude
        minSpeed = CGFloat.greatestFiniteMagnitude
        lastSpeed = 0
    }
}
